package com.menhai.personmanagement.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.menhai.personmanagement.entity.UaOpinion;
import com.menhai.personmanagement.entity.co.UaOpinionCo;
import com.menhai.personmanagement.services.IUaOpinionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 * 意见反馈 前端控制器
 * </p>
 *
 * @author shikun
 * @since 2022-07-20
 */

@Slf4j
@RestController
@RequestMapping("/uaopinion")
public class UaOpinionController {

     @Autowired
     private IUaOpinionService uaOpinionService;


     @RequestMapping("/selectByList")
     public IPage<UaOpinion> selectByList(UaOpinionCo uaOpinionCo){
          IPage<UaOpinion> list = uaOpinionService.selectByList(uaOpinionCo);
          return list;
     }

     @RequestMapping("/selectById")
     public UaOpinion selectById(UaOpinionCo uaOpinionCo){
          UaOpinion uaOpinion = uaOpinionService.selectById(uaOpinionCo);
          return uaOpinion;
     }
}
